
# -*- coding: utf-8 -*-
import os

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QDockWidget, QAction, QFileDialog
import cv2

START_PATH = os.path.dirname(__file__)

class NetCameraDev(QtWidgets.QMainWindow):
    def __init__(self):
        self.__class__.Icon = os.path.join(START_PATH, "icons/camera.png")
        self.__class__.MenuText = "NetCamera"
        self.__class__.ToolTip = "a start workbench"

    def setPlatform(self, platform):
        self.platform = platform

    def Initialize(self, para):
        self.platform.appendMenu("tutor", __class__.tutor)
        app = QtWidgets.QLabel("Hello")
        self.platform.moduleWidget.setWidget(app)

    def DeInitialize(self):
        pass

    def tutor(self):
        print("in start tutor")

    def stop(self):
        self.platform.sayGoodbye("plugin2")

def getModuleClass():
    return NetCameraDev
